//----auto get horde detail----------
//----see view_horde_detail.ftl for <div id="ssid">${ssid}</div> to get ssid
$(function () {
		var ssid = $("#ssid").text();
		$.ajax({type:"GET", dataType:"html", url:"ajaxgethordedetail.jsp?ssid="+ssid, 
			success:function (html) {
				html = $.trim(html);
				if (html) {
					$("#ajaxcontentholder").append(html);
				}
			}, 
			complete:function () {
				$("#hordetoparea").html($("#hordetoparea_content").html());
				$("#hordeleftarea").html($("#hordeleftarea_content").html());
				$("#horderecommendarea").html($("#horderecommendarea_content").html());
				$("#ajaxcontentholder").empty();
			}
		});
		
		$(".morehotwebsite").click(function(){
				curCategoryId = $(this).attr("sgid")?$(this).attr("sgid"):0;
				if(curCategoryId){
					$.ajax({type:"GET", dataType:"html", url:"ajaxlisthotwebsite.jsp?sgid="+curCategoryId, 
						success:function (html) {
							html = $.trim(html);
							if (html) {
								$("#ajaxhotwebsiteholder").html(html);
							}
						}, 
						complete:function () {
							$("#ajaxhotwebsiteholder").attr("style","display:inline");
						}
					});					
				}
				return false;
		});
});